
#ifndef DRIVER_ADC_H
#define DRIVER_ADC_H

#ifdef __cplusplus
extern "C" {
#endif

#define EXAMPLE_ADC1_CHAN3          ADC_CHANNEL_3
#define EXAMPLE_ADC1_CHAN4          ADC_CHANNEL_4
#define EXAMPLE_ADC1_CHAN5          ADC_CHANNEL_5
#define EXAMPLE_ADC1_CHAN6          ADC_CHANNEL_6
#define EXAMPLE_ADC1_CHAN7          ADC_CHANNEL_7

typedef enum {
    DRIVER_ADC_CH_BAT = 0,
    DRIVER_ADC_CH_AI_1,
    DRIVER_ADC_CH_AI_2,
    DRIVER_ADC_CH_AI_3,
    DRIVER_ADC_CH_PT100,
    DRIVER_ADC_CH_MAX,
} driver_adc_channel_t;

void driver_adc_init(void);

esp_err_t driver_adc_get_voltage(driver_adc_channel_t channel, float *val);
#endif /* DRIVER_ADC_H */

#ifdef __cplusplus
}
#endif

